/**
 * IColourScheme.java
 * colourmap
 * Copyright (C) 2010 Alan W.F. Boyd
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * You can contact the author via the google code web page for the project
 * <http://colourmap.googlecode.com>
 */
package com.googlecode.colourmap.colours;

import java.awt.Color;

/**
 * Classes implementing the IColourScheme interface provide a mapping between
 * a data value and a colour.
 * @author Alan W.F. Boyd
 *
 */
public interface IColourScheme
{
	/**
	 * Sets the minimum value of all the data in the set of data.
	 * @param f the minimum value
	 */
	public void setMin(float f);
	
	/**
	 * Sets the maximum value of all the data in the set of data.
	 * @param f the maximum value
	 */
	public void setMax(float f);
	
	/**
	 * Determines what colour to use, given a data value.
	 * @param f the data value
	 * @return the colour that maps to the data
	 */
	public Color getColour(float f);
	
	/**
	 * Returns the colour that the data points should be represented as.
	 * @return the colour for the data points
	 */
	public Color getOutlineColour();
}
